//package org.example.rubbish.controller;
//
//
//
//import org.example.rubbish.entity.ExceptionReport;
//import org.example.rubbish.service.ExceptionReportService;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.*;
//
//import java.util.Date;
//import java.util.List;
//
//@RestController
//@RequestMapping("/api/exception")
//public class ExceptionReportController {
//    @Autowired
//    private ExceptionReportService reportService;
//
//    @PostMapping
//    public ExceptionReport createReport(@RequestBody ExceptionReport report) {
//        return reportService.createReport(report);
//    }
//
//    @PostMapping("/{id}/audit")
//    public void auditReport(@PathVariable Long id, @RequestParam Integer status,
//                            @RequestParam Long auditorId, @RequestParam String auditResult) {
//        reportService.auditReport(id, status, auditorId, auditResult);
//    }
//
//    @GetMapping("/{id}")
//    public ExceptionReport getReportById(@PathVariable Long id) {
//        return reportService.getReportById(id);
//    }
//
//    @GetMapping("/status/{status}")
//    public List<ExceptionReport> getReportsByStatus(@PathVariable Integer status) {
//        return reportService.getReportsByStatus(status);
//    }
//
//    @GetMapping("/time")
//    public List<ExceptionReport> getReportsByTimeRange(@RequestParam Date startTime, @RequestParam Date endTime) {
//        return reportService.getReportsByTimeRange(startTime, endTime);
//    }
//
//    @GetMapping("/station/{stationId}")
//    public List<ExceptionReport> getReportsByStationId(@PathVariable Long stationId) {
//        return reportService.getReportsByStationId(stationId);
//    }
//}